<?php

Yii::app()->clientScript->registerScript('search', "
	var a=1;
$('.search-button').change(function(){
	if(a==2){
	$('.search-form').toggle();
	}
	a=2;
	$('.search-form').toggle();

	return false;
});
");?>

<h3> Reportes Generales </h3>
<select name="numtexts" id="numtexts" class='search-button'>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<?php //echo CHtml::link('Tipo de','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search'); ?>
</div><!-- search-form -->

